﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="~/Scripts/jquery-1.8.2.js"></script>
<h2>Index</h2>

<script>
    var appId = "20200229105251277495500";
    var appSecret = "67e734a2-16a4-41b6-a027-b7e466c2e2df";
    var url = "https://open.welink.huaweicloud.com/api/auth/v2/tickets";

    $(document).ready(function () {
        debugger;
        $.ajax({
            type: 'POST',
            url: url,
            data: {client_id: appId,client_secret: appSecret},
            dataType: 'json',
            success: function (d) {
                if (d) {
                    console.log(d.status);
                }
            }
        })
    });
</script>
